<template>
  <!-- 加载中 -->
  <Loading v-if="loading" @success="loading = false" />
  <!-- 正常的视图 -->
  <router-view v-else></router-view>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { setTheme } from "./utils";
import Loading from "./views/Loading/index.vue";

// 设置主题
setTheme("light");

const loading = ref(true);

// 引入必要css
import "./style/index.css";
import "./style/loader.css";
import "./style/theme/dark.css";
import "./style/theme/light.css";
import "./assets/iconfont/iconfont.css";
</script>
